package com.storage.init;

import com.storage.bean.MyVolume;
import com.storage.service.MySequenceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

@Component
public class VolumeInit implements ApplicationRunner {
    @Autowired
    private MySequenceService mySequenceService;
    @Override
    public void run(ApplicationArguments args) throws Exception {
        MyVolume test = mySequenceService.load("TEST");
    }
}
